package domain;

import java.util.ArrayList;

public class Student {
    private String name;
    private String sno;
    private ArrayList<Score> homeworkScores = new ArrayList<>();
    private ArrayList<Score> interactionScores = new ArrayList<>();
    private float examScore;

    public Student(String sno, String studentName) {
        this.sno = sno;
        this.name = studentName;
    }

    public String getName() {
        return name;
    }

    public String getSno() {
        return sno;
    }

    public ArrayList<Score> getHomeworkScores() {
        return homeworkScores;
    }

    public ArrayList<Score> getInteractionScores() {
        return interactionScores;
    }

    public float getExamScore() {
        return examScore;
    }

    public void setExamScore(float examScore) {
        this.examScore = examScore;
    }

    public void addHomeworkScore(Score score) {
        homeworkScores.add(score);
    }

    public void addInteractionScore(Score score) {
        interactionScores.add(score);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", sno='" + sno + '\'' +
                ", homeworkScores=" + homeworkScores +
                ", interactionScores=" + interactionScores +
                '}';
    }
}